To play Max Payne with SwiftShader activated, install the game using the MaxPayneDemo.exe installer, then copy the d3d8.dll and SwiftShader.ini files into the target folder for the installed game.